package ProxyDemo.unstatic_proxy.SellWine;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class SellMaoTai implements InvocationHandler {

    private Object pp;

    public SellMaoTai(Object pp) {
        this.pp = pp;
    }


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("销售前");
        method.invoke(pp,args);
        System.out.println("销售后");
        return null;
    }
}
